import java.awt.*;
import javax.swing.*;

public class Cours extends JPanel {
	public Cours(Color color, String nom, String type, String prof) {
		this.setLayout(new GridLayout(3,0));
		this.setBackground(color);
		this.setBorder(BorderFactory.createMatteBorder(0, 0, 0, 1, Color.BLACK));

		
		add(new JLabel(nom));
		add(new JLabel(type));
		add(new JLabel(prof));
	}
	
}
